//
//  SSSSIncomeOrderCell.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/10/19.
//

import UIKit

class SSIncomeOrderCell: UITableViewCell {
    
    
    @IBOutlet weak var numberLab: UILabel!
    
    @IBOutlet weak var titleLab: UILabel!
    @IBOutlet weak var addressLab: UILabel!
    @IBOutlet weak var timeLab: UILabel!
    @IBOutlet weak var priceLab: UILabel!


    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    var model:SSEmployeeOrder = SSEmployeeOrder()  {
        didSet{
            titleLab.text = model.itemNames
            numberLab.text = "订单编号：\(model.orderNo)"
            addressLab.text = "服务地址：\(model.serviceAddr)"
            timeLab.text = "服务时间：\(model.serviceTime)"
            priceLab.text = "收入：$\(model.totalIncome)"
            
            let attributedString2 = NSMutableAttributedString(string:"收入 $\(model.totalIncome)")
            attributedString2.addAttributes([.font: UIFont.systemFont(ofSize: 12),.foregroundColor:UIColor(hex: "#9EA6B2")!], range: NSRange(location: 0, length: 2))
            self.priceLab.attributedText = attributedString2
        }
    }
    
}
